/* MODAL DE LISTAS - OVERLAY E CONTAINER PRINCIPAL */
.modal-listas-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
}
.modal-listas-overlay.abrindo,
.modal-listas-overlay.fechando,
.modal-listas-overlay.aberto {
    display: flex;
}
.modal-listas-container {
    background: #050505;
    border: 2px solid #00ffcc;
    width: 0;
    height: 0;
    position: relative;
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
/* ANIMAÇÃO ABRIR */
.modal-listas-overlay.abrindo .modal-listas-container {
    animation: listasAbrir 0.85s forwards;
}
@keyframes listasAbrir {
    0% { width: 0; height: 0; opacity: 0; }
    30% { width: 200px; height: 2px; opacity: 1; }
    60% { width: 200px; height: 120px; }
    100% { width: 450px; height: auto; min-height: 480px; max-height: 85vh; overflow-y: auto; opacity: 1; }
}
.modal-listas-overlay.aberto .modal-listas-container {
    width: 450px;
    height: auto;
    min-height: 480px;
    max-height: 85vh;
    overflow-y: auto;
}
/* ANIMAÇÃO FECHAR */
.modal-listas-overlay.fechando .modal-listas-container {
    animation: listasFechar 0.7s forwards;
}
@keyframes listasFechar {
    0% { width: 450px; height: auto; min-height: 480px; max-height: 85vh; opacity: 1; }
    40% { width: 200px; height: 120px; }
    70% { width: 200px; height: 2px; }
    100% { width: 0; height: 0; opacity: 0; }
}
/* SCROLLBAR */
.modal-listas-container::-webkit-scrollbar { width: 4px; }
.modal-listas-container::-webkit-scrollbar-track { background: #0a0a0a; }
.modal-listas-container::-webkit-scrollbar-thumb { background: #00ffcc; border-radius: 4px; }
.modal-listas-container::-webkit-scrollbar-thumb:hover { background: #ffffff; }
/* HEADER DO MODAL */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #222;
    padding-bottom: 15px;
    padding-top: 10px;
}
.modal-header h3 {
    color: #00ffcc;
    margin: 0;
    font-size: 1rem;
    letter-spacing: 2px;
}
/* CONTEÚDO INTERNO - APARECE COM DELAY */
.modal-header,
.modal-tabs,
.tab-content,
.modal-cancel {
    opacity: 0;
    transition: opacity 0.3s ease;
}
.modal-listas-overlay.aberto .modal-header,
.modal-listas-overlay.aberto .modal-tabs,
.modal-listas-overlay.aberto .tab-content,
.modal-listas-overlay.aberto .modal-cancel {
    opacity: 1;
    transition: opacity 0.3s ease 0.85s;
}